<?php


namespace app\index\middleware;


use think\Response;

class AuthIndex
{
    public function handle($request,\Closure $next){
//        if(empty(session(config('admin.session_admin'))) && !preg_match('/login/',$request->pathinfo())){
//            return redirect(url('login/index'));
//        }
        return redirect(url('/index/member/login'));
        $response = $next($request);

        return $response;

    }
    public function end(Response $response)
    {
    }
}